package com.flydog.taskManager.repository;

import com.flydog.taskManager.entity.user.UserRoleRelation;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserRoleRelationRepository extends JpaRepository<UserRoleRelation, Long> {
    List<UserRoleRelation> findByUserId(Long userId);

    long deleteByUserId(Long userId);
    List<UserRoleRelation> findByRoleId(Long roleId);
}